<?php

namespace Database\Seeders;

use App\Models\User;
use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $super_admin1 = User::create(['name' => 'hks-admin', 'username' => '小可爱天下无敌', 'id_card' => '421381199901093617', 'super_admin' => 1,  'email' => '3292339490@qq.com', 'password' => '123123']);
        $super_admin2 = User::create(['name' => 'szh-admin2', 'username' => 'sunzhaohui', 'id_card' => '421381199901093615', 'super_admin' => 1, 'email' => '68858521@qq.com', 'password' => '123123']);
        $super_admin3 = User::create( ['name' => 'sym-admin3', 'username' => 'songyueming', 'id_card' => '421381199901093613', 'super_admin' => 1,  'email' => '3162531699@qq.com', 'password' => '123123']);

        $super_admin1->assignRole('super_admin');
        $super_admin2->assignRole('super_admin');
        $super_admin3->assignRole('super_admin');
    }
}
